//统一管理项目接口的模块
//引入二次封装的axios（带有请求、响应的拦截器）
import requests from "./request";

// 封装网络请求方法(工具人)
// 推荐歌单：/personalized?limit=1
export const recommendMusic = (params) =>
  requests({
    url: "/personalized",
    params,
  });

// 推荐新音乐： /personalized/newsong
export const hotMusic = (params) =>
  requests({
    url: "/personalized/newsong",
    params,
  });
